# -*- coding: utf-8 -*-
"""
Created on Tue Sep  5 20:03:31 2017

@author: Administrator
"""

import matplotlib.pyplot as plt

labels='A','B','C','D'

fracs=[15,30,45,10]

plt.axes(aspect=1)#使x y轴比例相同

explode=[0,0.05,0,0]# 突出某一部分区域

plt.pie(x=fracs,labels=labels,autopct='%.0f%%',explode=explode)#autopct显示百分比

plt.show()